<?php

use Illuminate\Database\Migrations\Migration;

class CreateDanhgiasvTable extends Migration
{
    /**
    * Run the migrations.
    *
    * @return void
    */
    public function up()
    {
        Schema::create('danh_gia_sv', function($table)
        {
            $table->engine='InnoDB';
            $table->increments('id')->unsigned();
            $table->integer('id_chi_tiet_hd')->unsigned();
            $table->integer('id_sinh_vien')->unsigned();
            $table->float('diem')->nullable()->default(null);
            $table->text('danh_gia')->nullable()->default(null);
        });
    }

    /**
    * reverse the migrations.
    *
    * @return void
    */
    public function down()
    {
        Schema::drop('danh_gia_sv');
    }
}